package com.qf.jie.entity.bo;

public class Page {
    private int total;      //数据总量
    private int len;        //每页的数据长度
    private int pageCount;  //总页数
    private int currentPage;//当前页
    private Object data;    //要展示的数据

    public Page() { }
    public Page(int total, int len, int pageCount, int currentPage, Object data) {
        this.total = total;
        this.len = len;
        this.pageCount = pageCount;
        this.currentPage = currentPage;
        this.data = data;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getLen() {
        return len;
    }

    public void setLen(int len) {
        this.len = len;
    }

    public int getPageCount() {
        return pageCount;
    }

    public void setPageCount(int pageCount) {
        this.pageCount = pageCount;
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "Page{" +
                "total=" + total +
                ", len=" + len +
                ", pageCount=" + pageCount +
                ", currentPage=" + currentPage +
                ", data=" + data +
                '}';
    }
}
